\ Operator

Used to perform Integer division between two numbers.


Syntax

result=expression1 \ expression2

PartTypeDescription
result Number The Integer division of expression1 and expression2.
expression1 Number Any numeric expression.
expression2 Number Any numeric expression.


Notes

Use this operator when you require division that does not consider the decimal portion of the expressions.

You can use Operator_IntegerDivide to define the \ operator for classes.


Examples

This example stores the result of a division of two numbers in a variable:

Dim x as Integer
x=50.56.34   //x is 1

See Also

/, Mod operators; Operator_IntegerDivide function.